package vn.fpt.fsoft.autotest.trustdistrictDAO;

import static org.junit.Assert.*;

import org.junit.Test;

import vn.fpt.fsoft.autotest.database.TrustDistrictDB;
import vn.fpt.fsoft.dao.TrustDistrictDAO;

public class GetTrustDistrictsByRegion {
    
    @Test
    public void test1() {
       TrustDistrictDB.CreateData();       
       System.out.println(TrustDistrictDAO.getTrustDistrictsByRegion(0).size());
       assertEquals(2, TrustDistrictDAO.getTrustDistrictsByRegion(0).size());
    }
    @Test
    public void test2() {
       TrustDistrictDB.CreateData();  
       System.out.println(TrustDistrictDAO.getTrustDistrictsByRegion(2).size());
       assertEquals(0, TrustDistrictDAO.getTrustDistrictsByRegion(2).size());
    }
}
